<?php 



if (getParameter("operation")=="copy") {

	$targetPortalId=getParameter("targetportal");
	if ($targetPortalId=="none") $targetPortalId=null;
	//CopyPages("key_m",$targetPortalId);
	header("Location:".createRelativeUrl("operation","list"));
}

if (getParameter("operation")=="rights") {

    $groupId=getParameter("targetgroup");
    $right=getParameter("right");
    if ($groupId=="none") $groupId=null;
    SetRights("key_m",getObjByKey("portal_objects","id","name","portal_portletpage"),$groupId,$right);
    header("Location:".createRelativeUrl("operation","list"));
}

if (getParameter("operation")=="movepage")  MoveObject(getParameter("objectid"),getParameter("direction"),"portal_portletpage");
/*
*/
?>

